
package org.darcy.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description="WorkRoleUser: 业务流程角色对应用户")
@TableName(value = "work_role_user")
@Getter
@Setter
public class WorkRoleUser implements Serializable {

	private static final long serialVersionUID = 1L;

	@Schema(description = "")
	@TableId(type = IdType.AUTO)
	private Integer id;

	@Schema(description = "用户id")
	@TableField(value = "`user_id`")
	private Integer userId;
	
	@Schema(description = "部门id")
	@TableField(value = "`dept_id`")
	private Integer deptId;

	@Schema(description = "角色id")
	@TableField(value = "`role_id`")
	private Integer roleId;

	@Schema(description = "创建时间")
	@TableField(value = "`create_time`")
	private Date createTime;

	@Schema(description = "更新时间")
	@TableField(value = "`update_time`")
	private Date updateTime;

	@Schema(description = "删除标识0：删除1：存在")
	@TableField(value = "`del_flag`")
	private Integer delFlag;

	// 扩展属性
	@Schema(description = "用户姓名")
	@TableField(exist = false)
	private String realName;

	@Schema(description = "部门名称")
	@TableField(exist = false)
	private String deptName;
	
	@Schema(description = "角色名称")
	@TableField(exist = false)
	private String roleName;

}
